
<template>
    <!-- <van-image :src="getAssetsFile('welcome_main.png')" width='375' fit="contain" /> -->
    <van-image :src="mImgSrc" width='375' fit="contain" />
    <div class="testBg">1231</div>
    <div class="testBg2">2222</div>
    <!-- <van-list>
        <div onclick=""></div>
    </van-list> -->
</template>
<script setup lang="ts">
import { getAssetsFile } from '../../utils/YcAssetUtil'
import { useRouter } from 'vue-router'
let mImgSrc = new URL(`../../assets/images/welcome_main.png`, import.meta.url).href
let router = useRouter()
let toNext = (time: number) => {
    setTimeout(() => {
        console.log(`${router}`)
        router.replace({
            name: 'loginAc'
        })

    }, time)
}

function checkPermission() {
    // toNext(3000)
}

checkPermission()
</script>
<style>
.testBg {
    width: 375px;
    background: #13f;
    color: red;
    padding: 0px;
    left: 0px;
    border-style: solid;
    border-width: 1px;
    border-color: red;
}

.testBg2 {
    width: 375px;
    background: #13f;
    color: red;
    padding: 0px;
    left: 0px;
    border-style: solid;
    border-width: 1px;
    border-color: red;
}
</style>